package Day13;

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改
/**
 * 2021Java真题:星期计算
 * https://www.lanqiao.cn/problems/2140/learning/
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int tmp = 1;
        for(int i = 1; i <= 22; i++){
          tmp = (tmp * 20) % 7;
        }
        System.out.println((tmp + 5) % 7 + 1);
        scan.close();
    }
}